#ifndef _CARDAPDU_H_
#define _CARDAPDU_H_
#include "../../includes.h"

//#define ICC_APUD_MAXBUF 260

#define 	DEF_SysCard_Debug  errmsg("Er F=%s N=%d\r\n",__FILE__,__LINE__);

#define ICC_APUD_MAXBUF 260

extern unsigned char  gCmdBuffer[260];                  
extern unsigned char  gpRcvBuffer[260]; 

extern void errmsg( const char *format, ... );

extern unsigned int HexToStr(unsigned char *in, unsigned int insize, char *out);
extern unsigned int StrToHex(char *in, unsigned int insize, unsigned char *out);

extern unsigned int ICC_APDU_Exchange( unsigned int cid, unsigned char *in_data, unsigned int in_size, 
	                            unsigned char *out_data, unsigned int *out_size, unsigned int out_maxbuf );


extern unsigned int ICC_PCD_RadioOff( void );								//关闭射频天线
#endif

